package indi.zhifa.core.mpenhance.handler;

import com.baomidou.mybatisplus.core.handlers.MetaObjectHandler;
import indi.zhifa.core.mpenhance.properties.MetaObjectHandlerProperty;
import lombok.RequiredArgsConstructor;
import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
public class BaseMetaObjectHandlerAdapterAutoConfigure {

    @ConditionalOnMissingBean(MetaObjectHandler.class)
    @Bean
    public MetaObjectHandler baseMetaObjectHandler() {
        return new BaseMetaObjectHandlerAdapter();
    }
}
